<?php
// +----------------------------------------------------------------------
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
// +----------------------------------------------------------------------
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
// +----------------------------------------------------------------------
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
// +----------------------------------------------------------------------
// | Author: liu21st <liu21st@gmail.com>
// +----------------------------------------------------------------------

// 登录
Route::group('login', function () {
    Route::get('', 'index/login/index');
})->allowCrossDomain();

Route::group('admin', function () {
    Route::post('/login', 'index/admin.login/index');
})->allowCrossDomain();

Route::group('v1', function () {
    Route::get('/login', 'index/login/index');

    // 内容发表
    Route::get('/article/list', 'index/v1.Content/list');
    Route::resource('article', 'index/v1.Content')
    ->only(['read', 'update', 'delete','save']);
})->allowCrossDomain();

// 高并发redis测试
Route::group('test', function () {
    Route::get('', 'index/login/index');
})->allowCrossDomain();
